<!DOCTYPE html>
<html>
<head>
    <title>订单列表</title>
    <#include "../common.ftl">
</head>
<body class="childrenBody">

<form class="layui-form">
    <blockquote class="layui-elem-quote quoteBox">
        <form class="layui-form">
            <div class="layui-inline">
                <div class="layui-input-inline">
                    <input type="text" name="odId" class="layui-input searchVal" placeholder="订单编号"/>
                </div>
                <div class="layui-input-inline">
                    <input type="text" name="userName" class="layui-input searchVal" placeholder="收货人"/>
                </div>
                <div class="layui-input-inline">
                    <select name="odState" id="odState">
                        <option value="">订单状态</option>
                        <option value="0">待付款</option>
                        <option value="1">待发货</option>
                        <option value="2">已发货</option>
                        <option value="3">已完成</option>
                        <option value="4">已关闭</option>
                    </select>
                </div>
                <div class="layui-input-inline">
                    <select name="type" id="type">
                        <option value="">订单类型</option>
                        <option value="0">普通订单</option>
                        <option value="1">优惠订单</option>
                    </select>
                </div>
                <div class="layui-input-inline">
                    <select name="odSource" id="odSource">
                        <option value="">订单来源</option>
                        <option value="0">PC订单</option>
                        <option value="1">APP订单</option>
                    </select>
                </div>
                <a class="layui-btn search_btn" data-type="reload">
                    <i class="layui-icon">&#xe615;</i> 搜索
                </a>
            </div>
        </form>
    </blockquote>

    <!-- 数据表格 -->
    <table id="OrdersList" class="layui-table" lay-filter="Orders">
    </table>

    <script type="text/html" id="toolbarDemo">
        <div class="layui-btn-container">
            <a class="layui-btn layui-btn-normal delNews_btn" lay-event="del">
                <i class="layui-icon">&#xe640;</i>
                删除
            </a>
        </div>
    </script>


    <!--操作-->
    <script id="OrdersListBar" type="text/html">

        <a class="layui-btn layui-btn-xs" id="edit" lay-event="edit">查看详情</a>
        {{# if (d.odState== 1) { }}
        <a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="send">订单发货</a>
        {{# } else { }}
        <a href="javascript:;" class="layui-btn layui-btn-normal layui-btn-xs"  lay-event="del">删除订单</a>
        {{# } }}
    </script>
</form>

<script type="text/javascript" src="${ctx}/js/orders/orders.js"></script>
</body>
</html>